<?
##########################################################################
#		DOCUMENTATION
##########################################################################
# Main visualization script. It loads all the pages with their correct 
# translation and builds them at "run-time".
#
# © LiberLab group, 2011
##########################################################################

session_start();

require_once("generalFunctions.php");
$pageToLoad = getParam("page", "index");

$baseDir = "dynamic/";
if (file_exists($baseDir . "$pageToLoad.php")){
	require_once($baseDir . "$pageToLoad.php");
	$object = new Renderer();
}else{
	require_once($baseDir . "standard.php");
	$object = new Renderer($pageToLoad);
}
echo $object->main();

?>
